import { Base } from '../../../utils/base.js'
const app = getApp()
class Index extends Base {
  constructor() {
    super()
  }

  /*得到首页banner*/
  getIndexBanners(data, callback) {
    let school_id = wx.getStorageSync('school_id')
    let param = {
      url: app.globalData.api + '/api/v1.0/banners/' + school_id,
      data,
      showLoading: true,
      sCallback: (res) => {
        callback && callback(res.data)
      }
    }
    this.request(param)
  }
}

export { Index }
